package com.example.javaapiclient.strategy.properties;

import com.example.javaapiclient.annotations.ESField;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service(value = "parseFieldMappingInteger")
public class IntegerParseFieldMappingServiceImpl implements ParseFieldMappingService {
    @Override
    public Map<String, Object> getFieldMapping(ESField esField) {
        Map<String, Object> map = new HashMap<>();
        map.put("type",esField.type().toString().toLowerCase());
        map.put("store",esField.store());
        map.put("index",esField.index());
        return map;
    }
}
